<template>
  <div>内容测试耶</div>
</template>

<script>
import { constantRoutes } from '@/router/index'
export default {
  created() {
    const menus = this.$store.state.user.userInfo.roles.menus
    // console.log(menus)
    const res = []
    constantRoutes.forEach(inde => {
      if (menus.indexOf(inde.name) !== -1) {
        res.push(inde)
      }
    })
    // console.log(res)
  }

}
</script>

<style>

</style>
